import { http } from '@/utils/axios';

export function queryManagerVenues() {
  return http.request<Venue.VenueInfo[]>({
    url: '/v1/venue/info/query-manager-venues',
    method: 'GET',
  });
}

export function detailVenue() {
  return http.request<Venue.VenueInfo>({
    url: '/v1/venue/info/detail',
    method: 'GET',
  });
}

export function stopBusiness() {
  return http.request({
    url: '/v1/venue/info/stop-business',
    method: 'POST',
  });
}

export function openBusiness() {
  return http.request({
    url: '/v1/venue/info/open-business',
    method: 'POST',
  });
}

export function modify(data) {
  return http.request({
    url: '/v1/venue/info/modify',
    method: 'POST',
    data,
  });
}
